package com.bbs.pojo;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * 用于认证和授权的主体对象
 */
@Data
public class UserPrincipal{
    private String userId;
    private String username;
    private String role;
}
